<?php
$rtime 		= microtime();
$rtime 		= explode(" ",$rtime);
$rtime 		= $rtime[1] + $rtime[0];
$start_rb 	= $rtime;
require_once 'core/Debug.php'; //System Debug...
require_once 'core/config.php';//System Config...
require_once 'core/Init.php';  //System Init...
require_once 'core/PageBegin.php';  //System Init...

$page = array(
		"index"      	=>	"index",
		"ticket"      	=>	"ticket",
		"report"      	=>	"report",
		"login"       	=>	"login",
		"signout"       =>	"signout",
		"password"      =>	"password"
);

$page_get = FunctionLib::getParam('page','index'); 

if(!isset($page[$page_get])){
	$page[$page_get] = 'index';
}
if(User::is_login()){
	require_once(ROOT_PATH."module/header/header.php");
	require_once(ROOT_PATH."module/footer/footer.php");
	new header();
}
require_once(ROOT_PATH."module/".$page[$page_get]."/".$page[$page_get].".php");
new $page[$page_get] ();

if(User::is_login()){
	new footer();
}

require_once 'core/PageEnd.php';  //System Init...
?>